import 'dart:ui';

import 'package:flutter/material.dart';

class GlassButton extends StatelessWidget {
  final Widget child;

  const GlassButton({
    super.key,
    required this.child
  });

  @override
  Widget build(BuildContext context) {
    return ClipRRect(
      borderRadius: BorderRadius.circular(16),
      child: BackdropFilter(filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10), child: Container(
        decoration: BoxDecoration(
          color: Colors.white.withValues(alpha: 0.15),
        ),
        child: child,
      ),),
    );
  }
}
